monitor_rs
A convenience library that provides an easier way to use the combination of Mutex+Condvar in Rust. The concept is known as Monitor synchronization construct and is similar to Java's synchronized() statement.
License: MIT
Usage
Put this in your Cargo.toml
:
[]
= "0.1.0"
And this in your crate root:
extern crate monitor;
Example
extern crate monitor;
use Duration;
use Arc;
use thread;
use Monitor;
For more examples, see the tests in lib.rs.